function getSum(n1: number, n2: number): number {
    return n1 + n2
}
const result: number = getSum(10, 20)
console.log(getSum(10, 20))
console.log(result)




type Person={
    nickName:string
    age:number
}

function renderPerson(person:Person):Person[] {
    const array:Person[]=[]
    array.push(person)
    return array
}

const personArray:Person[]=renderPerson({nickName:"陶品奇",age:22})
console.log(personArray)
